





//
//  PicView.m
//  Home
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PicView.h"

@implementation PicView

+ (instancetype)picviewWithframe:(CGRect)frame title:(NSString *)title1 title:(NSString *)title imageview:(NSString *)imageview{

    PicView *view = [[PicView alloc] initWithFrame:frame];
    view.label1 = [[UILabel alloc] initWithFrame:CGRectMake(150, 50, 100, 30)];
    view.label1.text = title1;
    [view addSubview:view.label1];
    

    view.label2 = [[UILabel alloc] initWithFrame:CGRectMake(150, 100, 100, 30)];
    view.label2.text = title;
    [view addSubview:view.label2];

    view.imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
    view.imageview.image = [UIImage imageNamed:imageview];
    [view addSubview:view.imageview];
    
    view.view = [[UIView alloc]initWithFrame:CGRectMake(0, 100, 400, 1)];
    [view addSubview:view.view];
    [view.view release];
    view.view.backgroundColor = [UIColor blackColor];


    return [view autorelease]; 


}

@end
